package com.cs.state;

/**
 * @author Sam.Lee E-mail:lishanman2007@163.com
 * @version Created：Aug 31, 2011 10:25:35 AM
 */
public class Context {
	private State state;

	public Context() {
		state = new FirstState();
	}

	public void setState(State state) {
		this.state = state;
	}

	public void execute() {
		state.handleState(this);
	}
}
